package xkp.lesson4;

public class TestException {
	public static void main(String[] args) throws CloneNotSupportedException {
		//int n = 10/0;                  //算术运算异常 java.lang.ArithmeticException
//		int[] arr = null;   
//		System.out.println(arr.length);//空指针异常   java.lang.NullPointerException
//		arr = new int[10];
		int[] arr = new int[10];
		 //数组下标越界异常java.lang.ArrayIndexOutOfBoundsException
		//System.out.println(arr[10]); 
		Person person = new Person();
		//Driver driver = (Driver) person;         //java.lang.ClassCastException
		Person person2 = (Person) person.clone();  //java.lang.CloneNotSupportedException
		
		
		
	}

}
